package org.leetcode.easy.leetcode14;

public class StringTest
{
    public static void main(String[] args) {
//        String strTest="zhang";
//
////        String substring = strTest.substring(strTest.length()-3);
//        String substring = strTest.substring(0,1);
//
////        if (substring=="")
////        {
////            System.out.println(123);
////        }
//        System.out.println(substring);
//
//        System.out.print(strTest.length());


//        String [] lengthTest = {"a","b"};
//
//        for (int i = 2; i < lengthTest.length; i++) {
//            System.out.println(lengthTest[i]);
//        }

//        String testOne ="zhang";
//        String testTwo="zhangzhen";
//
//        System.out.println(testTwo.startsWith(testOne));
//
//        System.out.println(testOne.startsWith("zhang"));


        String strTest = "zhang";

        char c  = strTest.charAt(1);
        System.out.println(c);
    }
}
